import Layout from '@/layout'

const prizeRouter = {
  path: '/prize',
  component: Layout,
  name: 'Prize',
  alwaysShow: true,
  meta: {
    title: '获奖管理',
    // roles:['prize_prize_manage','admin'],
    icon: 'el-icon-trophy',
  },
  children: [
    {
      name: 'MyPrizeList',
      path: 'myprize',
      component: () => import('@/views/prize/my_prize/index.vue'),
      meta: {
        title: '我的获奖',
        icon: 'yuan-red'
      }
    },
    {
      name: 'PrizeList',
      path: 'prize',
      component: () => import('@/views/prize/index.vue'),
      meta: {
        title: '所有获奖',
        // roles: ['admin','prize_prize_all'],
        icon: 'yuan-red'
      }
    },
    {
      name: 'FirstCheckPrizeList',
      path: 'first_check_list',
      component: () => import('@/views/prize/check_prize/first_check_list/index.vue'),
      meta: {
        title: '学院审核',
        roles: ['admin','prize_prize_first_check'],
        icon: 'yuan-blue'
      }
    },
    {
      name: 'SecondCheckPrizeList',
      path: 'second_check_list',
      component: () => import('@/views/prize/check_prize/second_check_list/index.vue'),
      meta: {
        title: '学校审核',
        roles: ['admin','prize_prize_second_check'],
        icon: 'yuan-green'
      }
    },
    {
      name: 'AddPrize',
      path: 'add_prize',
      hidden: true,
      component: () => import('@/views/prize/add_prize/index.vue'),
      meta: {
        title: '新增获奖'
      }
    },
    {
      name: 'PrizeDetail',
      path: 'prize_detail',
      hidden: true,
      component: () => import('@/views/prize/view_prize/index.vue'),
      meta: {
        title: '获奖详情'
      }
    },
    {
      name: 'PrizeUpdate',
      path: 'prize_update',
      hidden: true,
      component: () => import('@/views/prize/update_prize/index.vue'),
      meta: {
        title: '修改获奖'
      }
    },
    {
      name: 'PrizeFirstCheck',
      path: 'first_check',
      hidden: true,
      component: () => import('@/views/prize/check_prize/first_check/index.vue'),
      meta: {
        title: '获奖学院审核',
        roles: ['admin','prize_prize_first_check'],
        activeMenu: '/prize/first_check_list'
      }
    },
    {
      name: 'PrizeSecondCheck',
      path: 'second_check',
      hidden: true,
      component: () => import('@/views/prize/check_prize/second_check/index.vue'),
      meta: {
        title: '获奖学校审核',
        roles: ['admin','prize_prize_second_check'],
        activeMenu: '/prize/second_check_list'
      }
    }
  ]
}
export default prizeRouter
